#include "TCP_client.hpp"

int main(int argc,char* argv[])
{
    if(argc != 3)
    {
        cout<<"./client IP PORT is right style"<<endl;
        return -1;
    }
    std::string ip=argv[1];
    int port=atoi(argv[2]);
    auto cvr=new TCP_Client(ip,port);
    if(cvr->Client_Init())
    {
        cvr->Client_Start();
    }
    else
    {
        perror("FATAL ERROR: init failed\n");
    }
    return 0;
}